<?php

declare(strict_types=1);

namespace App\Request;

class NewsRequest extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        $rules = [
            'detail' => [
                'id' => 'required|integer',
            ],
        ];
        return $this->useRule($rules);
    }

    public function attributes(): array
    {
        return [
            'id' => 'ID',
        ];
    }
}
